package com.example.demo.controller;

import com.cet.mysdk.factory.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: demo
 * @description: 自制sdk测试
 * @author: 陈恩涛
 * @create: 2023-06-16 23:38
 **/

@RestController
@RequestMapping("/sdk")
public class MySdkController {

    @Autowired
    private SqlSessionFactory sqlSessionFactory;

    @GetMapping("/url")
    public String getSdkMessage() {
        return sqlSessionFactory.getUrl();
    }
}
